Skip to content

Instantly share code, notes, and snippets.

name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

@Novfensec
Novfensec / main.py
Created September 12, 2026 12:25
Borderless Windows in Kivy on Linux with all features preserved
from kivy.config import Config
Config.set('graphics', 'custom_titlebar', '1')
Config.set('graphics', 'custom_titlebar_border', '8')
Config.set('graphics', 'resizable', '1')
Config.set('graphics', 'fullscreen', '0')
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.button import Button
from kivy.uix.textinput import TextInput
@mortenpi
mortenpi / handle_segfault.c
Last active September 12, 2026 20:20
Recover gracefully from a segmentation fault (SIGSEGV) in C due to invalid pointer.
/*
Credits to:
- https://linux.die.net/man/2/setcontext
- https://stackoverflow.com/questions/8456085/why-cant-i-ignore-sigsegv-signal
*/
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <signal.h>
@ossa-ma
ossa-ma / tropes.md
Last active September 12, 2026 20:19
AI Writing Tropes to Avoid — tropes.fyi by ossama.is

AI Writing Tropes to Avoid

Add this file to your AI assistant's system prompt or context to help it avoid common AI writing patterns. Source: tropes.fyi by ossama.is


Word Choice

"Quietly" and Other Magic Adverbs

@mcsyauqi
mcsyauqi / seo-technical-audit-checklist.md
Created September 11, 2026 16:43
SEO Technical Audit Checklist (Quick Reference)

SEO Technical Audit Checklist (Quick Reference)

A working checklist for a first-pass technical SEO audit, organized in the order that catches the highest-impact issues first. Meant as a working document to run through during a site review, not a polished article.

1. Crawlability

  • robots.txt reachable at the root and returns 200, not a redirect chain
  • No accidental Disallow: / left over from staging
  • XML sitemap listed in robots.txt and returns valid XML, not HTML
  • Sitemap only lists canonical, indexable URLs (no redirects, no noindex pages, no 404s)
@georgehossa
georgehossa / SEO-Open_Graph.html
Last active September 12, 2026 20:17
[SEO - Open Graph] #SEO
<link rel="canonical" href="{{pageURL}}">
<!--Open Graph Start -->
<!--Open Graph Facebook -->
<meta property="og:type" content="article" />
<meta property="og:url" content="{{pageURL}}" />
<meta property="og:title" content="{{pageTitle}}" />
<meta property="og:description" content="{{pageDescription}}" />
<meta property="og:image" content="{{imageURL}}" />
@awni
awni / mlx_distributed_deepseek.md
Last active September 12, 2026 20:17
Run DeepSeek R1 or V3 with MLX Distributed

Setup

On every machine in the cluster install openmpi and mlx-lm:

conda install conda-forge::openmpi
pip install -U mlx-lm

Next download the pipeline parallel run script. Download it to the same path on every machine:

@arcanemachine
arcanemachine / claude-model-list.md
Last active September 12, 2026 20:14
Claude model list

Claude Model Reference

Last updated: April 30, 2026

Notes

  • To switch models in Claude Code, use the /model command with your desired model ID.

    • Example: /model claude-opus-4-6 (Opus 4.6, 200k context)
  • Info was LLM-generated.